package coms.process;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.Map;
import org.json.JSONArray;
import org.json.JSONObject;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import com.beans.AdminUserBean;
import com.beans.AuditProcessBean;
import com.beans.TaskBean;
import com.beans.VEHICLE;
import com.crc.mam.BaseCase;
import com.crc.mam.PropertiesUtil;

import coms.Constants;
import frame.FrameWork;
import frame.HttpHelper;
import frame.InterTest;
import functions.ems_claim.ClaimProcess;
import functions.ems_process_service.ClaimProcessTaskMgr;
import functions.mams_rest.Sys;
import functions.mams_rest.User;


public class Todo extends BaseCase implements InterTest{
	//我的待处理
	private static Logger logger = LoggerFactory.getLogger(Todo.class);


	@Override
	public void run(Map<Object, Object> paramMap) {
	  String baseUrl = (String) paramMap.get("baseUrl");
      if(baseUrl !=null) {
        FrameWork.setBaseUrl(baseUrl);
      }
	  LoginTest loginTest = new LoginTest();
      loginTest.run(paramMap);
	  String claimNo = (String) paramMap.get("claimNo");
	  String claimId = (String) paramMap.get("claimId");
	  ClaimProcessTaskMgr task = new ClaimProcessTaskMgr();
      task.findmytodo(claimNo);
      TaskBean taskBean = task.getTaskBean();
      AuditProcessBean processBean = task.getProcessBean();
      User user = new User();
      user.admin();
      AdminUserBean bean = user.getUserBean();
      Sys sys = new Sys();
      sys.yesNo();
      ClaimProcess process = new ClaimProcess();      
       process.adminsubmit(claimId, taskBean, processBean);
	}


  @Override
  public boolean getStatus() {
    // TODO Auto-generated method stub
    return status;
  }
	
	
  @Override
  public String getRemark() {
    return remark;
  }

	
   

}
